package day5.demo1_线程通信;

public class MyThread implements Runnable{
    @Override
    public void run() {
        System.out.println("wait前。。。。");
        synchronized (this){
            System.out.println("进入同步代码块...");
            try {
                this.wait();
                System.out.println("wait后。。。");
            } catch (InterruptedException e) {}

        }
    }
}
